import { defineStore } from 'pinia'
import type { User } from '../types/userType'

interface State {
  userInfo: User
}

export const useUserStore = defineStore('user', {
  state: (): State => {
    return {
      userInfo: {
        username: '',
        type: ''
      }
    }
  },
  persist: true
})
